Filename: /text/sbasic/shared/03090300.xhp
(section: sprung)
The following statements execute jumps.
各種のジャンプ処理を行うためのステートメントです。(par_id3148983.2)
(embed text/sbasic/shared/03090301.xhp#gosubreturn : linkinfo)
Calls a subroutine that is indicated by a label from a subroutine or a function. The statements following the label are executed until the next Return statement. Afterwards, the program continues with the statement that follows the GoSub statement.
サブルーチンや関数中から、ラベルで指定するサブルーチンを呼び出します。ラベルの指定先にあるステートメント群は、最初に出現する Return ステートメントの位置までが実行されます。これらのステートメント群の実行後、プログラムの処理行は、呼び出し元の GoSub ステートメントの次行にあたるステートメントに戻ります。(par_id3145316.2)
(/embed text/sbasic/shared/03090301.xhp#gosubreturn)
(embed text/sbasic/shared/03090302.xhp#goto : linkinfo)
Continues program execution within a Sub or Function at the procedure line indicated by a label.
Sub や Function などのブロック中で、プログラムの実行行をラベル指定された位置に移動させます。(par_id3153379.2)
(/embed text/sbasic/shared/03090302.xhp#goto)
(embed text/sbasic/shared/03090303.xhp#ongosub : linkinfo)
Branches to one of several specified lines in the program code, depending on the value of a numeric expression.
プログラムコード上に複数の指定行を設けておき、与えられる数値表式を基にして、いずれか 1 つの行に分岐します。(par_id3150359.2)
(/embed text/sbasic/shared/03090303.xhp#ongosub)